Change edit_group method

Change edit_group method to separate 3 methods.