got rid of setting category on page load