Creating matrix control