create a controller