rearrange urls and resources in order to be more restful