add getLayout method to retrieve layout metadata