+ rewriting tabs functionality