change speed and fix tab change bug