added onProgress view index argument