updated posts controller to reflect relationship change