Voting logic

Implemented voting logic
Restructured layout