add script setting class and layout file