Debug

- correct update criterion beug ( template not found error)
- correct some visible  '}' in the bottom of  diferents template files
- correct dropGradeAvailable conditions