added adaptive tab bar by @Ramotion