Preparing the code for top 10 popup