add showSampleSize checkbox, separate url route callback setup from app.js to routes.js