improved dynamic router

current_page now looks at request, no dependence on params