ended infinite loop
app goes back to main after completion