changed routing to include dynamic page names