Customized for new permissions
Customized map_detail for new permissions