Moved API URL into session as class variable and provided accessor method for it