Fixed bug with delete button and rendering ListView