Renamed procedure, immediately remove in add_view

Renamed `__remove_view` to `__queue_delete` to be more consistent with the behaviour of the procedure.
Directly delete the history entries in the `else` case of `add_view` since we don't want the delete to be queued.