Making the code more scalable
Changed toPage2 to prevPage etc...
Fixed page constraints
Fixed default load page