The return periods are parsed from the radio buttons

* updating the legend works only in chromium and not in firefox