view add render function