implement auto scroll to bottom and turn off soft keyboard on add action
implement auto scroll to bottom and turn off soft keyboard on add action
add closing cursor in getLatestEnd method.