add functional for tabs