using Application class in order to reduce the duplicate code for
location manager.
end of this week commit