prevent refresh on blur after refresh on enter