update and add refresh button