Legend bug fixes

Edit intervals button broken, should be an easy fixed.