Finished event template with fixing issue of media not switching when clicked on