macro for binding menu button