bind menu action in a single place