Spreadhseet: Fixed opening and closing ofeditor view