Deleting some manual logging
Compact the main
Some changes related with ViewHelper