update script reference
switch from pageinit to pagebeforeshow
trying to pass the id for the item
add keyArg to edit function
passing id into edit