added router and go-to-page functionality