adding routes and a map directive listener