added angular-routes and extended api