fix avoiding keyboard bug
add doc