fix for editor not closing after saving new product