add `beforetransition` & `error` event
add action filter