Implements MDI and corrects toolbar