added code for layout maker