Added edit method to groups controller