fixed final main controller so it builds