Fix script bootstrap
Make modal dialog work