Correction select/deselect all

@jcbrand, The submit was caused by the lack of a type attribute on the
buttons. That's solved now. Yet the function for select/deselect still
doesn't work here.