add popup event binding