css and more register logic