How to make thank you message replace form on submission