added if statement to post list view adapter