Managing your views in code