refactored alert views to alert controllers