fixed ng compile problem and votedone logic