use events to render default actions instead of js in html