added refresh control