Added some transition effect in tab switch method