Added private variables along with onSaveInstance and onRestoreInstance methods, to keep instance data stored.  Also added a method to recognize if a button was clicked and handle if its stayed enabled or it gets disabled.