add send error mail function
add comment
mod ui and javascript