Toggle legend works! forgot to include jquery ui