improvement: made the popup view move according to the height of keyboard