votepage event handler intial commit
pourashave bug fix and minor changes