update api to create url only
fix minor bug