created the controller properly