Add event listeners for layers panel