setTimemout after successfully saving steps to db and show error other wise keping the modal open