Remove "x" buttons from dialogs

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