added query to hide modal when save is hit.