fixed json and html respnse in polls#index