Prevent double conf/cancel and fix error view