BUG:refresh page when close window