Made changes to matrix widget