added code to make resolution for ipad