Added a conditional to scroll, don't scroll if hash does not exist
Added the encode view