refactored category code; added category menu to header