delete page transition function