Fixes the toggle and delete actions for both links and pixels.