how to use layout