Changed event type in sample code for hide action