rewrote navigation links into their own template and view.
added comments to some functions
tweaked css