Added tab pages

and found a way to resize components in them automatically