add functions to clear the terminal after input