Add loading state when save config