This function is confusing. It only "hides the modal" if a save was completed? Shouldn't the modal also be hidden if "Cancel" was pressed (or does that ALSO call "onSave")? I need help....