migrate to view plugin