Fixed issue where 'dirty' state wasn't removed from save button after being clicked.