moved locationlistener to seperate class