Why not find out what the flashing lights mean?
http://www.hotpointservice.co.uk/appliances/dishwashers/error-codes/#dishwasher-led
Looks like the DW is not emptying quickly enough.
Don't understand why you changed the heating element.
Check ALL the items in the drainage path: Hose for blocks and kinks, drain pump for foreign objects and / or general crap, etc. Find the manual and that should tell you what you need to do.
acp, June 2017