close page after loaded