Move variable assignments

Move delay/count so that they're reset per pageAction click