Initial code for search and initialize categories and styles