Added an offset parameter to the popup view