fixed tab click function