Fixed click method for changing pages