update ui for random track. fix loop bug