support two way for loading static and dynamic contents