Adding JS to set dialog size when in compact view
Setting application.appInitialized=false so it an error occurs it will try again on the next request
Setting application.appInitialized=false so it an error occurs it will try again on the next request