Review round №2: Reset state.segmentInfo if attachment added, using css class instead of id