Implemented onSaveInstanceState and onRestoreInstanceState so that when the app changes orientation the list does not change