tabs logic

tabs logic