OnWindowReturn callback