update screen fit function