add edit post page
add error reporting tempalte and js