added autosize
backspace will now edit last tag if the input is empty