connect message menu to actions