using service instead of asynctask. still not working properly