implemented beforeShowMonth options to be able to discard unused months when using minViewMode = 1