fix the sorts and css