Properly center the dialog, courtesy of flexbox. Closes GH-1