automatic control start and ending works, submit function alert works