Adds setReference function to OAuthModel
Makes changes accordingly on HomeController setreference