added the hook to unset empty field so they dont show up on the view page