Fix styles and add email event handler