some error controls
error template