adding embedcode field and update hook