added better exclusions to Router.onBeforeAction rule