added an if statement to didSelectAnnotation