fixed js bug for showing months panel