How to move to the first page on a button click?