Measurement of top quark properties at CMS