Page type changing method is implemented