refactored angular in to module