fixing issue with checkValues and adding demo page