better mapping of <cr> in insert mode
make public function for mapping <cr>