add back require to view.R