added option to popbox static and dinamic