removed debugging leftovers and fixed page transitions