some refactoring; pagination of the web view