Code written to add panel view