page direction and profile page work