dialog layout cleaning