applying alerts via view