Add app logic for map