Remove "x" buttons from dialogs

This fixes #165. I refrained from clearing any white space from blank/end of lines.

@redmunds Do you need to review this, and do I need to fill out a CLA or anything first?