added refresh button and loading icon