finished survey page and made it compatible with ajax