Made toggle effective immediately.Added hidden field.