Added save hooks on lost focus