fix view mode