resizing dialog by keypad