implemented session variables and autofill answered questions