using reverse instead of hardcoded url