fixing error in undefined variable; changing formatting so that home page is different