add dynamic method to get desktop resolution