fix bug in q_replace, cleanup question show template