fix view file rendering