Add angularjs animation and bug fixes