Added padding and navigation on states to sidebar and sub nav
Moved message HTML and front-end logic out into view.html