add services & refactoring
use services
add ngAnimate