code to remove oldest page