add close page processing