got master detail working; followed wenderlich blog for inspiration