finish dialog layout
add code to open dialog