How to update the thank you message which is displayed after form is submitted?