added modal dialog not based on boostrap api but on current windowing system.
Also fixed dragging the window outside the browser window remaining stick to the cursor.