small fix view state