cleaned up posts controller to add ability to modify existing posts