Reorganized some things, added some "this", and added a feedback dialog so that the user knows whether the command succeeded or not.

Also, found why when losing focus it freezes for a couple seconds, on the TODO list