Update shortcode function