show controls only if the item is selected