fixed tab selection on main activity.