implement working solution for screen dpi changes