optimizing the page add