update main min height