Text this: Modelling time-varying covariates effect on survival via functional data analysis