some changes
fixed load()
changed logic for list material view page
changed material form page
changed logic for create/edit material