Fix deprecation warning 'Action handlers implemented directly on controllers are deprecated'