added a menu listner