Move refresh code into method
Updating screenshot