combined what popover with question box in css and js. some refactoring as well