fixed logic bug (time til close) on open page