fixing layout errors