hide modal on save