fixes contests.js to not hide the wrong buttons