re-write in rails 4, bootstrap3, etc.