bugfixes for undelegated events; better error messages in signin-dialog