Committing new changes when page is smaller than view port