move dom manipulation codes to static css files
use haml instead of js
improve user sort method