fix blogpost edit errors; add draft function