move view setting to css