Dynamically Add Different Input Types on Matrix