rewrite event function as domAction methods
fix deprecated method
allow the callers to recall without exit room