added working subtitle functionality