cleanup html and selection of track