added in sample layer interactivity code.