Updated Code for screen height