added another case for button object in update method to observe the change in button state.Wrote a method to assign the default state to Preview button as false.
Created the setDefaultState method to be accessed from toolbar.as to set the default state of any button object. setButtonState methods to be accessed from anywhere to change the state of button to enable/disable.
Wrote method to show alert message with OK and Cancel button and sent error to server in a crash data dump log package. Used a method "getvalue" to display formatted alert title and message.
Imported Few Package and classes. Wrote methods to dump Crash data to the server and server response. Created seperate log array to store only the sorted out log of Crash Dump severity level from the array of all the logs.