added communication between location service and application