before action now works on custom actions