fixed draft function
working on publishing, unpublishing