made refresh button work - request is not defined