added support for custom map controls