added refresh button and loader spinner