Fixed bug in email template and updated onpage documentation