remove unneeded sorter
Move ui code to style element
Untangle JS/PHP