Added some more functionality to panels