adding calculated eventbegin

and some small template tweaks