displaying alert on successful send, recognizing when edit letter link is clicked