Improve hide vkb keyboard, improve preferences