Change tools.alert to use the new alert module