Add html ids on transitions