Add Layout Designer

Add Layout Designer
Update algorithm