added auto submit on middle step