Fixed a crash bug and made save button dynamic

Fixed a bug that crashed the application when it tried to append an
empty string object to a mutable string.  I forgot to make sure the
string wasn’t ‘nil’ first.  Also created code that enables/disables the
save button when appropriate.