improved dialog layout