Moved the api url into the config file and added extension methods for the session and the view page