Applying styles to differnt layouts