Listen for clicks inside and outside of a component node