Refresh button

Still not finished, but an improvement. It can come back to the master branch.