write the progress bar functionality
change icon to play when the track finished