refresh window when interact starts and ends
got rid of refresh variable