added functionality for adding and showing questions and answers