update the selectedspace startinvideo and endinvideo for undo and redo