Adding a changePage method (to integrate later) and confirm / cancel functionality