change creating layout and using manager to set graggable and sortable