change style, extend message api and template