modularizing tabs