add page direction