adding alerts to res.renders