Added refresh button and visible/invisible functionality