Fixes some jittery behavior with the menus; still some issues to work out