adds function to load views