add automatic page transition