Added optimised pagination

Fixed back button and pagination
Merge pull request #20 from isflorin/dev

Added optimised pagination