adds email controller and routing