add page transition function after downloading