updated to use native alerts