added approach to change layout