tidy angularjs view