helper for grid borders and restarting demo page