Production of $\eta_c$ and dimuon enhancement in heavy ion collisions