remove redundand code from menu slot