added correct handling of css pagetransitions