handle scenarios after form submit