remove modal dialog replace with panel