Added some functionality to top panel