Make navigationbar more flexible