Remove controller code from view