Disable page btns, refactor a little