implemented checkbox in choosing materials