call transition function from changePage()