proxy onended event