added categories in edit controller