adding blur callback to close edit field on blur