Moved appropriate code back to the poll/index page