functionality for adding posts added