set up navigation, finally fixed pageradapter.replace() bug