Fixed refresh button

Closes the first frame and opens a new one