Fix #118 remove event handlers needs to be called before add handlers under client mode when remove from the current page