adding and deleting of posts in memory