added dynamic page loading