Move the dialog to a separate file; move the WIDTH, HEIGHT to the rendering module