Various code base changes

radio buttons and voting working.
Many changes to events, event controller, main page and the function
previous known as mainpanel is simply known as panels. Eventually this
will be further broken down into event panels, an object created from an
event object and a abstract panel