video window with hide fuction