better touch support for navbar
refactor navbar