Looping through category list to populate sidebar. Also closes #1