added tabs functionality