added ng-animate for status messages and some refactoring