update active elem method