added events map to template