Adding action to menu buttons