fixing preview and view published buttons states on unit page, fixes from feedback on PR review