Dialog need to be restored on close if collapsed