Adding event listeners for configurations