updated polls to generic views