create tabs and layouts