fixed main layout and create brick dialog
fixed main layout and create brick dialog