Adding delay to reload. Adding class to warning messages