Refactoring angular ui by styleguide