added js function to show answerform on button click