code cleanup
handleDblClick wrapper method and fixing triggering of clickEntity
event. Added dblclickEntity event by the way.