refactor(cloudfunc) getPathElement
feature(listeners) add onPathElementClick