changed variable names in documentPanel