get rid of router; permalink functionality update