State is saved and restored due to current item index