Added location listener functionality