finished refactooring both textPane and VideoPane