add scale and file dialog