moved things to a separate file, hooked up a working tab system