Add jquery ui and sorting groups