change button event to actionPerformed in rankingPanel