fixed error handling, next will update show_procedures html