added if else statement to index html to show message if no posts uploaded