restructured postvote again with split method and conditional return form ajax