how to return to main loop instead of function after interrupt?

you need to design the program correctly in the first place - see blink without delay.

Mark