sanitizing view file