removed promisebeforerendered
Prevent closing on datetimebuttons
several intermediate changes