added an extra layout and fixed the problem