Added helper methods for dealing with different screensize and height