added refresh funciton based on intent service