getting categories on page load