Added single page navigation code and some samples