refactored stepper GET to POST method