refactured Question-Answer-View.js to use data-id and data-type selectors