adjustments for ios7 and table views. fixes #13
moved method