add refresh button and edit views