moved map configuration out of controller