implemented container factory into wordpress