Added logic to destroy grid on close of modal