modal dialog closed after action