how to create page cleanup