Changed viewUrl function in table model