added published flag to model
setup draft functionality