generilizing routs depending on models