New group html modal instead of showing the edit html
Showed the modal in the ui-router onEnter method.
added a refresh method
code refactor and comments