Added publish/unpublish and view functionality.