modify template showEvent