using routes instead url rewrite