refactoring events posts and feed