working on displaying current page