Removed .delegate and replaced with .on in the delegate form