Switching to MutationObservers for detecting task selection