some optimizations on tab view for mobile