Made config check for changes before saving