show logic for adding posts