update alert code to fade in/out and be used by controllers