modified route to use common_name instead of id