move render from views to plugin