updated NSAlert creation method