remove trailing whitespaces before saving;
hide menu and toolbar