added scrollbar to edit window if needed and clear companions on every render