Fix static page errors
Format some code, fix some bugs
Remove unused stylesheet
Fix search sort locale issues