Shortcode edit page

- update the preview and shortcode when the template is changed
- changed create/update button