more changes to the page vars, this time much much less code is required
renamed json variables