Add distance option and fix interaction with lambda slider and topic selection