added flag to enable/disable animation on selection a tab button