fixed 404, 500 templates a bit and added edit to table for drafts