Added document controls from mainapp