cleaning up some js and smoothing out the transition betweem tabs