weak reference
set delegate of tableview to nil, as it is defined as "unsafe_unretained" which will crash if the tv sends delegate messages
didbeginediting block
viewdidload and viewwillappear block