added group coding in edit page