prevent demo buttons from refreshing page