replaced the harcoded url with reverse for category model