popupmenuは非同期関数と相性が悪い