render data to view