tried another way to render view