Created new class CViewContainer to separated html from php. Restructured some code but result is the same