menu logic added