Added extra event hooks for before value change
Fixed flicker in localstorage results