cleaned up things and fixed in page edit bugs