created a controller