Added variable in mylist.java to determine if the view should be updated.