made editor a component so tab buttons can be added