Implemented permalinks
Permalink now replaces window.location