Simplified onBeforeAction on the thread controller