refatoring the topic show template