(gui) try to reconnect ports after refinement update

Fixes #75
(gui) Display the correct number of elements before deletion
(gui) Allow refinement only with a different entity