handle event for docs