Added some functionality to the display and added close menu item listener