button to handle selected features