Modified interface and solved bug errors when the map was shown