delete all the unnecessary data from the page