cleaned code, extracted view initialization in viewhelpers and heads