handles multiple pages
separated views