added agencies controller and adjusted routes