reverted changes on next button