Adds function that loads any page into element