Adding directions and lines to map view and added logic