layout and style applying working