UI improvement. video processing has a bug that does not stop gracefully using while(cap.isOpened())