refactoring in videowidget
better model with try/catch