working on buttons accessing url api