Added pagination for each category and home page