modyfication and add view and function to use editor option