add positionChanged signal to allow drawing trajectory