implemented the track previewing feature