fixing layout resolution