Oops, fixed bug i introduced when i moved the map viewer code into the controller