Added editing functionality
Fixed problem when voting