Made a slight modification to allow for categories in the right bar