change pages' destination after clicking the buttons