update updateMenuView, need refactor to make it work