changing status to published