add table ancestry and modify navigate