Fixed bug in sorting attributes and got columns working with toggles