Move plugin render to api view