add style and script function