cleaning up the page status