refactored hide forms into exitEditMode and showForm into exitEditMode