fix unclosed show and edit form