alert and addMessage