passing id into edit