Moved edit to angular ui modal