Add alert div functionality