make page transition consistent