add some ui and navigator show/hide function