hover effect and rendering the contents for each category