Updated XEM code for displaying show template