fixed closing grid view bug