Refactor angularJs template. Handle pages navigation. Change some css.