updated for inner pages