Secondary dynamics in glass formers: Relation with the structural dynamics and the glass transition