misc fixes

Appoint the layouttype on new pageload with no cookie.