Use controller action instead of onBeforeAction

Because idiomatic