added getCurrentTab meathod