triggers for video opening and closing