Supressed the closing cross in the main window
graying "format" option when writing
Enabling expander when formating.