Moving the tab creation back to onCreate to avoid duplicate tabs being
created.