improved editing legislation logic

how voting works with competing versions of the same legislation