format events widget