added smooth line visualization and removed unused callback functionality