edit and add category - frontend