rewrite menucontroller button handling