added if satement for pins on index page