Refactor; Restore global settings on blur