back function implemented (to erase last line)