refactor create group view and controller