add calendar widget resize function