added categories and fixed get url