Global variables implemented for screen height and width