improved css, fixed a little problem with sorting comparator