logic for thank you page in place still needs tweaking