made render_question() function