Fix for notes dialog close button and some formatting.

Meant as a fix for https://github.com/MarkUsProject/Markus/issues/1552, but they both seem to work fine for me?

Here's a fix for the notes dialogs' close buttons though.