Fixed spinner not updating after new pi is added or pi was deleted.