implemented merging of two navigations