Fixed button lag and position of dialog.