make alert messages work