updated views to generic views
basic functionality for polls is finished.