add pristine check for save button in footer