implemented a popup box to show a selected feature