fix to get keyup to trigger correctly
changed dialog layout