Change displayed publish or unpublish button depending on status