Added single page functionality