adding final view html and js according to feedback