add dismiss keyboard function