able to change recipe category in the category view
refactoring