modifi detail()
add templates for 404,500