added angular services and controllers