addeed all category selection functionality
have the category functionality working correctly