modified renderView