add the functions needed for some keybindings