fixing page directions