minor tweaks (added hidden field, added global to var)