add style and restructure jquery