refactored, updated formatting and layout of categories view