change modal dialog load mode