fixes routing, adds permalink gem