added code to the materials model to set material status as draft or completed if certain fields are filled out. Seems to work.