placing cursor at then end during deletion