doh - simplified some view login in index template