Add click function to translate tree from map