Got tabs working, needs cleanup