Toggle action button widget in crosshair?

I’m using a line trace for my interactions with objects in an fps game, I want my crosshair to toggle between a pick up symbol only when pointing at a pickable object, how can I turn of the widget after the player stops staring at the pickable object?