Moving alert demo logic to its own controller