Category from profile

Unfortunately this is very similar to the search bar. Potential refactoring to share more code in the future