Addresses issue #36

This fix ensures that dialog boxes are centered on the screen when requested.