Refactoring the Alert view and added Sprockets