making the vote system first time work
Refactoring codes with 'generic views'