Add alert method on mac