category edit,delete,add functionality
refactoring repository