added support for id parameter for preview shortcode