Location listener code added