added setPreload method for widget container