Changed main form to use more flexable tab system