remove alert messages from templates