Add published content-view to an activation-key and made the code more readable