Keep checkboxes checked after search

Make checkboxes which are checked stay checked when you search. Also
switch attributes to use double quotes rather than single so they are
all the same.