Rework page refresh using worker events instead