updated Details page with correct errorMessage variable
cleaning up home page