Introduce page handling
Cleanup
Fix problem with pages breach the zero and max range, actually simplified the whole thing