fixed the update hook for form layouts.