Improved objects tabs management and corrected a bug which was causing the
elimination of the wrong object on "Remove object".