create map controller