associate posts with users, change view depending