generate polls and convert html to haml