added controllers and angular-resource