add OK,Cancel button for dialog

add .footer class after .window class
add OK, Cancel button for dialog
leak