Pls help- Tappable overlay coding problem

No you can have them on the same line or on separate lines. Both work.