Close flow/edit window automatically after update