updated edit view to publish draft if its currently draft, and when you edit an already published post it just stays as is