comment some layout error raise to ensure the pdf is generated
add mail send feature