resolve close buttom issue