Added Ajax to votes and updated posts controller.