captions functionality added