Started to refactor tabs out of the main gui file; not finished; doesnt work at all atm