change array_rand func in hoverOnMainCategory func