Append function and UIAlert