openPageAction: rename subpageVariable to variable