handle menu signal