added: event register with html attributes