add refresh button and loading view