Replace .delegate with .on