change Activecode errors to use alert class