panel for details added, PanelController added, ng-class and ng-click used, packed up a little in controller