Added button functionality with routings and button ng-hides.