corrected xml for showpreview and capture after discussing with Ashik