updated the create and update actions for the wagers_controller