add more styles and function preview