macro for binding menu button

this will clean code