js and views little fixes