Adds functionality for categories and previous/next links in mobile