Setting up mutation observer events