cleaning up the maps controller