change "gehtWidth" with displaymetrics