Fixed user reload window bug to direct user back to home page

all candidate links working after page reload

	* if candidate model is not accessible in candidate view it navigates back to home page
	* could be way to keep state on candidate page after reload, but don't know how, will fix if I figure it out
	* all links at least work after window reload
Style nit: generally Javascript has formatting like:

    } else {