Fixed issue in folder delete and changed logic in grade update