adding the restoring of last playing item when leaving and returning to the app