added code to display questions