fixed bug in save button not being re-enabled on modal hidden