Writing script to prevent multitudes of clicks on content tabs