hide tabbar when necessary