Adding method to call url