beautified code
add moving of pages