fix the update view switch to menu bug