sets cursor for the DeleteEntity
removes redundant functions
Merge pull request #187 from bhattigurjot/master

Sets functions correctly