update view/css and display rate in js