added logic page edited demo page variables