added indexBy method for arr widget